home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
hlp_auth
/
pophel
/
pophelp2.frm
next >
Wrap
Text File
|
1994-04-16
|
4KB
|
144 lines
VERSION 2.00
Begin Form Form1
Caption = "Poplup Help"
ClientHeight = 2670
ClientLeft = 1095
ClientTop = 1485
ClientWidth = 5085
Height = 3075
Left = 1035
LinkTopic = "Form1"
ScaleHeight = 2670
ScaleWidth = 5085
Top = 1140
Width = 5205
Begin PictureBox Picture1
Align = 2 'Align Bottom
BackColor = &H00C0C0C0&
Height = 495
Left = 0
ScaleHeight = 465
ScaleWidth = 5055
TabIndex = 1
Top = 2175
Width = 5085
Begin Timer Timer2
Enabled = 0 'False
Interval = 50
Left = 6825
Top = 30
End
Begin Timer Timer1
Enabled = 0 'False
Interval = 850
Left = 6300
Top = 1000
End
End
Begin PictureBox picToolbar
Align = 1 'Align Top
BackColor = &H00C0C0C0&
Height = 510
Left = 0
ScaleHeight = 480
ScaleWidth = 5055
TabIndex = 0
Top = 0
Width = 5085
Begin SSRibbon pshToolBtn
Height = 345
Index = 0
Left = 90
PictureDnChange = 0 'Use 'PictureUp' Bitmap Unchanged
Top = 60
Width = 405
End
Begin PictureClip PicClip1
Cols = 7
Location = "1890,240,75,2625"
Picture = POPHELP2.FRX:0000
End
End
Begin Label labHelpMessage
AutoSize = -1 'True
BackColor = &H0080FFFF&
BorderStyle = 1 'Fixed Single
Caption = "labHelpMessage"
Height = 225
Left = 2280
TabIndex = 2
Top = 720
Visible = 0 'False
Width = 1440
End
End
Option Explicit
DefInt A-Z
Dim gNumBtns
Dim CurrentButton
Sub Form_Load ()
Dim I As Integer
Dim gCurrBtn
gNumBtns = picClip1.Cols
gCurrBtn = -1
'--LOAD TOOLBAR BUTTONS
For I = 0 To gNumBtns - 1
If I > 0 Then
Load pshToolBtn(I)
pshToolBtn(I).Left = pshToolBtn(I - 1).Left + pshToolBtn(I - 1).Width - 1
pshToolBtn(I).Visible = True
End If
pshToolBtn(I).PictureUp = picClip1.GraphicCell(I)
Next I
'--USE TAG TO HOLD HELP MESSAGE
pshToolBtn(0).Tag = "Clear workspace"
pshToolBtn(1).Tag = "Open previous workspace"
pshToolBtn(2).Tag = "Save current workspace"
pshToolBtn(3).Tag = "Calculate"
pshToolBtn(4).Tag = "Cut to Clipboard"
pshToolBtn(5).Tag = "Insert Excel Object"
pshToolBtn(6).Tag = "Exit demo program"
End Sub
Sub picToolbar_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
labHelpMessage.Visible = False
Timer1.Enabled = False
End Sub
Sub pshToolBtn_Click (Index As Integer, Value As Integer)
'--POP BUTTON BACK
pshToolBtn(Index).Value = False
'--THE EXIT BUTTON REALLY WORKS
If Index = gNumBtns - 1 Then
End
End If
End Sub
Sub pshToolBtn_MouseMove (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
CurrentButton = Index
labHelpMessage.Visible = False
Timer1.Enabled = False
Timer1.Enabled = True
End Sub
Sub Timer1_Timer ()
labHelpMessage = pshToolBtn(CurrentButton).Tag
labHelpMessage.Left = pshToolBtn(CurrentButton).Left
labHelpMessage.Visible = True
Timer1.Enabled = False
End Sub